"""seckill model add stock2

Revision ID: db94f8f698b2
Revises: b985f1747b91
Create Date: 2025-08-24 09:18:32.097526

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'db94f8f698b2'
down_revision: Union[str, Sequence[str], None] = 'b985f1747b91'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('seckill', sa.Column('stock', sa.Integer(), nullable=True, comment='库存'))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('seckill', 'stock')
    # ### end Alembic commands ###
